<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>我的</title>
		<link rel="stylesheet" href="./css/hovertree.css" />
		<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=3.0"/>
	</head>
	<body>
		<div style="position:absolute;left:0px;top:0px;">
			<div style="display: inline-block; font-size: 30px;">🎶</div>
			<audio autoplay="autopaly" loop="loop" controls="controls" id="audios">
				<source src="music/世间美好与你环环相扣.mp3" type="audio/mp3" />
			</audio>
		</div>
		<div class="hovertreeinfo">
			<h2></h2>
			
		</div>
		<!--/*外层最大容器*/-->
		<div class="wrap">
			<!-- 本地音乐，双击index.html -->
		
			<!--	/*包裹所有元素的容器*/-->
			<div class="cube" id="cube">
				<!--前面图片 -->
				<div class="out_front">
					<img src="img/img01.jpg " class="pic" />
				</div>
				<!--后面图片 -->
				<div class="out_back">
					<img src="img/img02.jpg" class="pic"/>
				</div>
				<!--左图片 -->
				<div class="out_left">
					<img src="img/img03.jpg" class="pic" />
				</div>
				<div class="out_right">
					<img src="img/img04.jpg" class="pic" />
				</div>
				<div class="out_top">
					<img src="img/img05.jpg" class="pic" />
				</div>
				<div class="out_bottom">
					<img src="img/img06.jpg" class="pic" />
				</div>
				<!--小正方体 -->
				<span class="in_front">
					<img src="img/img07.jpg" class="in_pic" />
				</span>
				<span class="in_back">
					<img src="img/img08.jpg" class="in_pic" />
				</span>
				<span class="in_left">
					<img src="img/img09.jpg" class="in_pic" />
				</span>
				<span class="in_right">
					<img src="img/img10.jpg" class="in_pic" />
				</span>
				<span class="in_top">
					<img src="img/img11.jpg" class="in_pic" />
				</span>
				<span class="in_bottom">
					<img src="img/img12.jpg" class="in_pic" />
				</span>
			</div>
		</div>
		 
		
		<script>
            var music = document.getElementById('audios');
            music.volume =0.1;
			var state = 0;
			document.addEventListener('touchstart', function(){    
				  if(state==0){        
                    music.volume =0.1;
					  music.play();        
					  state=1;    
				  }  
			  }, false);
			document.addEventListener("WeixinJSBridgeReady", function () {    
                music.volume =0.1;
				  music.play();
			  }, false);  
			//循环播放
			// music.onended = function () {    
			// 	music.load();    
			// 	music.play();
			// }    
		</script>
	</body>
</html>
